package ooday01;

public class Car {
    String brand;
    String color;
    double price;
    Car(){}

    public Car(String brand, String color, double price) {
        this.brand = brand;
        this.color = color;
        this.price = price;
    }
    void start(){
        System.out.println( this.brand+"牌子的，"+this.color+"颜色的，价格为"+this.price+"的车，正在启动。。。");
    }

    void run(){
        System.out.println( this.brand+"牌子的，"+this.color+"颜色的，价格为"+this.price+"的车，正在行驶。。。");
    }

    void stop(){
        System.out.println( this.brand+"牌子的，"+this.color+"颜色的，价格为"+this.price+"的车，停下来了。。。");
    }
}
